package com.sg.controller.pbff;

import com.sg.service.biz.pbff.EvaSystemService;
import com.sg.dto.biz.pbff.req.*;
import com.sg.dto.biz.pbff.res.*;
import com.sg.common.ro.OkrResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：
 * @version 1.0
 * @date ：
 */
@Api(value = "EvaSystem", tags = {"EvaSystem"})
@RestController
// @RequestMapping("/poms/evaSystem/")
public class EvaSystemController {

    @Autowired
    EvaSystemService evaSystemService;

    /**
     * B3判断指标是否存在修订(管理)
     * gen by moon at 11/18/2022, 7:34:56 PM
     */
    @PostMapping("/oms/mgt/evaSystem/judgeTargetIsReviseData")
    @ApiOperation(value = "B3判断指标是否存在修订(管理)", response = OkrResult.class)
    public OkrResult<BffJudgeTargetIsReviseDataRespDto> judgeTargetIsReviseData(@RequestBody(required = false) @Validated BffJudgeTargetIsReviseDataReqDto reqDTO) {
        return OkrResult.success(evaSystemService.judgeTargetIsReviseData(reqDTO));
    }
}
